#include<stdio.h>
/*
int main() {
	int m = 2, n = 1;
	m = m + 8;
	printf("%d\n", m + n);
	n++;
	printf("%d\n", m + n);
	n++;
	printf("%d\n", m + n);
	m = m + 8;
	printf("%d\n", m + n);
	n++;
	printf("%d\n", m + n);
	n++;
	printf("%d\n", m + n);
	m = m + 8;
	printf("%d\n", m + n);
	n++;
	printf("%d\n", m + n);
	n++;
	printf("%d\n", m + n);
	return 0;
}
*/
int main () {
	for (int i = 1;i <= 3;i++) {
		for (int j = 1;j <= 3;j++) {
			printf("%d\n",i * 10 + j);
		}
	}
	return 0;
}
